package com.cxb.servicemap.service;

import com.cxb.internalcommon.dto.ResponseResult;
import com.cxb.internalcommon.responese.TerminalResponse;
import com.cxb.servicemap.remote.TerminalClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Service
public class TerminalService {

    @Autowired
    private TerminalClient terminalClient;

    public ResponseResult<TerminalResponse> addTerminal(String name,String desc){
        return terminalClient.addTerminal(name,desc);
    }

    public ResponseResult<List<TerminalResponse>> aroundsearch(String center, Integer radius){
        return terminalClient.aroundSearch(center,radius);
    }
}
